function foo () {
  return 'abc'
}
function foo1 () {
  return 1233
}

let result = true
//  unknow类型的只能赋值到any和unknow的类型
//  any可以赋值给任意类型
let result1: any
if (result) {
  result1 = foo()
} else {
  result1 = foo1()
}
let res: number = result1
console.log(result1)
console.log(res)
export {}